// pages/artshop/artshop.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
        imgUrls: [
            '/images/consgoodsStore/Bitmap@2x.png',
        ], //banner
        sortList: [{
                id: 0,
                icon: '/images/artshop/shuimo.png',
                label: '水墨画'
            },
            {
                id: 1,
                icon: '/images/artshop/youhua.png',
                label: '油画',

            },
            {
                id: 2,
                icon: '/images/artshop/banhua.png',
                label: '版画'
            },
            {
                id: 3,
                icon: '/images/artshop/qihua.png',
                label: '漆画'
            },
            {
                id: 4,
                icon: '/images/artshop/diaosu.png',
                label: '雕塑'
            },
            {
                id: 5,
                icon: '/images/artshop/all.png',
                label: '全部'
            },
        ],
        gallary: [{
                id: 0,
                icon: '/images/artshop/shanshuiguan.png',
            },
            {
                id: 1,
                icon: '/images/artshop/renwuguan.png',
            },
            {
                id: 0,
                icon: '/images/artshop/shanshuiguan.png',
            },
            {
                id: 1,
                icon: '/images/artshop/renwuguan.png',
            },
            {
                id: 0,
                icon: '/images/artshop/shanshuiguan.png',
            },
            {
                id: 1,
                icon: '/images/artshop/renwuguan.png',
            },
            {
                id: 0,
                icon: '/images/artshop/shanshuiguan.png',
            },
            {
                id: 1,
                icon: '/images/artshop/renwuguan.png',
            },
        ],
        goodsList: [{
            img: "/images/consgoodsStore/hot1.png",
            goodsname: '粒粒皆辛苦',
            name: '方赠先'
        }, {
            img: "/images/consgoodsStore/hot2.png",
            goodsname: '粒粒皆辛苦',
            name: '方赠先'
        }, {
            img: "/images/consgoodsStore/hot3.png",
            goodsname: '粒粒皆辛苦',
            name: '方赠先'
        }, {
            img: "/images/consgoodsStore/hot5.png",
            goodsname: '粒粒皆辛苦',
            name: '方赠先'
        }, {
            img: "/images/consgoodsStore/hot6.png",
            goodsname: '粒粒皆辛苦',
            name: '方赠先'
        }],
    }, 
    /**
     * 跳转去列表页
     */
    e_gopage(e){
        wx.navigateTo({
            url: '/pages/artgoodslist/artgoodslist',
        })
    },
    /**
     * 跳转去艺术品搜索
     */
    e_gosearch(){
        wx.navigateTo({
            url: '/pages/art-search/index',
        })
    },
    /**
     * 跳转去美术馆
     */
    e_gogallery(){
        wx.navigateTo({
            url: '/pages/art-gallery/index',
        })
    },
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) {

    },

    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function() {

    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function() {

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function() {

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function() {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function() {

    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function() {

    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function() {

    }
})